package com.suke.czx.modules.wxadmin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.wxadmin.dao.DkExchangeCodeDao;
import com.suke.czx.modules.wxadmin.entity.DkExchangeCodeEntity;
import com.suke.czx.modules.wxadmin.service.DkExchangeCodeService;



@Service("dkExchangeCodeService")
public class DkExchangeCodeServiceImpl implements DkExchangeCodeService {
	@Autowired
	private DkExchangeCodeDao dkExchangeCodeDao;
	
	@Override
	public DkExchangeCodeEntity queryObject(String code){
		return dkExchangeCodeDao.queryObject(code);
	}
	
	@Override
	public List<DkExchangeCodeEntity> queryList(Map<String, Object> map){
		return dkExchangeCodeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dkExchangeCodeDao.queryTotal(map);
	}
	
	@Override
	public void save(DkExchangeCodeEntity dkExchangeCode){
		dkExchangeCodeDao.save(dkExchangeCode);
	}
	
	@Override
	public void update(DkExchangeCodeEntity dkExchangeCode){
		dkExchangeCodeDao.update(dkExchangeCode);
	}
	
	@Override
	public void delete(String code){
		dkExchangeCodeDao.delete(code);
	}
	
	@Override
	public void deleteBatch(String[] codes){
		dkExchangeCodeDao.deleteBatch(codes);
	}
	
}
